<?
require_once("lib/db_connection.php");
$compider = $_GET['compider'];
$q=mysql_query("select value from lookup_vehicle_tbl where company_id='".$compider."' AND category='journal categories'") or die(mysql_error());

$myarray=array();
$str="";


while($nt=mysql_fetch_array($q)){
$str=$str . "\"$nt[value]\"".",";
}
$str=substr($str,0,(strLen($str)-1)); // Removing the last char , from the string
echo "new Array($str)";

?>